﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Windows.Media.Imaging;

namespace simple_bounce
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
        }

        private void tabItem1_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
        {
            BitmapImage bmi;
            switch (tabControl1.SelectedIndex)
            {
                case 0:
                    bmi = new BitmapImage(new Uri("Logo1.jpg", UriKind.Relative));
                    image1.Source = bmi;
                    bounce.Begin();
                    break;
                case 1:
                    bmi = new BitmapImage(new Uri("Logo2.jpg", UriKind.Relative));
                    image1.Source = bmi;
                    bounce.Begin();
                    break;
                case 2:
                    bmi = new BitmapImage(new Uri("Logo3.jpg", UriKind.Relative));
                    image1.Source = bmi;
                    bounce.Begin();
                    break;
            }


        }
    }
}
